package com.zpz.framework.zpzoauth.service;

import com.github.pagehelper.PageInfo;
import com.zpz.framework.zpzoauth.common.result.ZpzOauthResultMsg;
import com.zpz.framework.zpzoauth.pojo.qo.AddDataGroupQo;
import com.zpz.framework.zpzoauth.pojo.qo.GetDataGroupAccessListQo;
import com.zpz.framework.zpzoauth.pojo.qo.UpdateDataGroupQo;
import com.zpz.framework.zpzoauth.pojo.vo.GetDataGroupAccessListVo;

import javax.servlet.http.HttpServletRequest;


/**
 * @作者 fengxm
 * @创建日期 2019-07-19 18:51
 * @描述 数据组权限管理
 */
public interface ZpzOauthDataGroupAccessSevice {
    /**
     * @Author fengxm
     * @NAME insertDateGroupAccess
     * @Description 添加数据权限组
     * @Date 2019/7/22 14:45
     * @param getDataGroupAccessListQo
    * @param addDataGroupQo
     * @return ZpzOauthResultMsg<java.lang.Boolean>
     */
    ZpzOauthResultMsg<PageInfo<GetDataGroupAccessListVo>> selectDateGroupAccessList(GetDataGroupAccessListQo getDataGroupAccessListQo);

    /**
     * @Author fengxm
     * @NAME insertDateGroupAccess
     * @Description 添加数据权限组
     * @Date 2019/7/22 14:45
     * @param request,addDataGroupQo
    * @param addDataGroupQo
     * @return ZpzOauthResultMsg<java.lang.Boolean>
     */
    ZpzOauthResultMsg<Boolean> insertDateGroupAccess(HttpServletRequest request, AddDataGroupQo addDataGroupQo);
    /**
     * @Author fengxm
     * @NAME updateDataGroupByGroupCode
     * @Description 根据groupCode修改数据权限组值
     * @Date 2019/7/22 15:33
     * @param request
    * @param updateDataGroupQo
     * @return ZpzOauthResultMsg<java.lang.Boolean>
     */
    ZpzOauthResultMsg<Boolean> updateDataGroupByGroupCode(HttpServletRequest request, UpdateDataGroupQo updateDataGroupQo);
}
